package com.cz073586.technology.model;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import com.cz073586.common.entity.pojo.PageInfo;

@Entity
@Table(name = "merchant_type")
public class MerchantType extends PageInfo<MerchantType>{
    /**
	 * 
	 */
	private static final long serialVersionUID = -3569050252245859540L;

	@NotEmpty
    @Length(min=1,max=32)
    @Column(name = "uuid")
    private String uuid;

    @Column(name = "type_name")
    private String typeName;

    @Column(name = "type_strategy")
    private Integer typeStrategy;

    @Column(name = "bind_to_id")
    private String bindToId;
    
    @Column(name = "parent_id")
    private String parentId;
    
    @Column(name = "img_url")
    private String imgUrl;
    
    @Column(name = "is_close")
    private String isClose;
    
    private List<MerchantType> listMerchantType;
    
    private List<AdInfo> listAdInfo;
    
    private List<AdInfo> listUnAdInfo;
    
    private String parentName;
    
	public String getIsClose() {
		return isClose;
	}

	public void setIsClose(String isClose) {
		this.isClose = isClose;
	}

	public List<AdInfo> getListUnAdInfo()
	{
		return listUnAdInfo;
	}

	public void setListUnAdInfo(List<AdInfo> listUnAdInfo)
	{
		this.listUnAdInfo = listUnAdInfo;
	}

	public String getParentName()
	{
		return parentName;
	}

	public void setParentName(String parentName)
	{
		this.parentName = parentName;
	}

	public List<MerchantType> getListMerchantType()
	{
		return listMerchantType;
	}

	public void setListMerchantType(List<MerchantType> listMerchantType)
	{
		this.listMerchantType = listMerchantType;
	}

	public String getParentId()
	{
		return parentId;
	}

	public void setParentId(String parentId)
	{
		this.parentId = parentId;
	}

	public String getImgUrl()
	{
		return imgUrl;
	}

	public void setImgUrl(String imgUrl)
	{
		this.imgUrl = imgUrl;
	}

	public List<AdInfo> getListAdInfo()
	{
		return listAdInfo;
	}

	public void setListAdInfo(List<AdInfo> listAdInfo)
	{
		this.listAdInfo = listAdInfo;
	}

	public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName == null ? null : typeName.trim();
    }

    public Integer getTypeStrategy() {
        return typeStrategy;
    }

    public void setTypeStrategy(Integer typeStrategy) {
        this.typeStrategy = typeStrategy;
    }

    public String getBindToId() {
        return bindToId;
    }

    public void setBindToId(String bindToId) {
        this.bindToId = bindToId == null ? null : bindToId.trim();
    }
}